package com.bsoft.wx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bsoft.wx.mapper.TbCityMapper;
import com.bsoft.wx.pojo.TbCity;
import com.bsoft.wx.service.TbCityService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 疫情城市列表 服务实现类
 * </p>
 *
 * @author hdh
 * @since 2023-01-11
 */
@Service
public class TbCityServiceImpl extends ServiceImpl<TbCityMapper, TbCity> implements TbCityService {

    @Override
    public String serachCode(String city) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("city", city);
        return baseMapper.selectOne(queryWrapper).getCode();

    }
}
